The crooks can sue for any damages caused to them. The landmark case involved a shotgun rigged to fire when a door was opened. The thief survived and successfully sued the homeowner for WAAAYYY too much money.
It is just not in your best interest to set traps. (And criminal charges are possible if you kill the guy. An electric shock, nonlethal, is probably fine if you had a warning...see how this crap works?)